.class Lcom/waiqin365/lightwork/directory/y;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightwork/directory/y;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 4

    const/4 v3, 0x0

    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    iget v0, p1, Landroid/os/Message;->what:I

    sparse-switch v0, :sswitch_data_0

    :goto_0
    return-void

    :sswitch_0
    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/y;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->dismissProgressDialog()V

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/b/a/af;

    const-string/jumbo v1, "1"

    iget-object v2, v0, Lcom/waiqin365/lightapp/dailyreport/b/a/af;->b:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/y;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    invoke-static {v1}, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->a(Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->clear()V

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/b/a/af;->a:Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/y;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    invoke-static {v1}, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->a(Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, v3, v0}, Ljava/util/List;->addAll(ILjava/util/Collection;)Z

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/y;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->b(Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/y;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->a(Z)V

    goto :goto_0

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/y;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    iget-object v0, v0, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->v:Landroid/content/Context;

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/y;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    const v2, 0x7f080264

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v3}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_0

    :sswitch_1
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/b/a/ab;

    const-string/jumbo v1, "1"

    iget-object v2, v0, Lcom/waiqin365/lightapp/dailyreport/b/a/ab;->a:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_3

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/y;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/b/a/ab;->g:Ljava/util/List;

    invoke-static {v1, v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->a(Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;Ljava/util/List;)Ljava/util/List;

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/y;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->c(Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;)Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/y;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->c(Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/y;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    iget-object v0, v0, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->k:Ljava/util/ArrayList;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/y;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    iget-object v0, v0, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->k:Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/y;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    invoke-static {v1}, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->c(Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;)Ljava/util/List;

    move-result-object v1

    invoke-virtual {v0, v3, v1}, Ljava/util/ArrayList;->addAll(ILjava/util/Collection;)Z

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/y;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    iget-object v0, v0, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->n:Lcom/waiqin365/lightwork/directory/b/p;

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/y;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    iget-object v1, v1, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->k:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightwork/directory/b/p;->a(Ljava/util/ArrayList;)V

    const-string/jumbo v0, "adapter"

    const-string/jumbo v1, "1"

    invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    :cond_1
    :goto_1
    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/y;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    iget-object v0, v0, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->n:Lcom/waiqin365/lightwork/directory/b/p;

    invoke-virtual {v0}, Lcom/waiqin365/lightwork/directory/b/p;->notifyDataSetChanged()V

    goto/16 :goto_0

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/y;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    invoke-static {v0, v1}, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->a(Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;Ljava/util/List;)Ljava/util/List;

    goto :goto_1

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/y;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    invoke-static {v0, v1}, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->a(Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;Ljava/util/List;)Ljava/util/List;

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/y;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    iget-object v0, v0, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->v:Landroid/content/Context;

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/y;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    const v2, 0x7f080263

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v3}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_1

    nop

    :sswitch_data_0
    .sparse-switch
        0xf -> :sswitch_0
        0x16 -> :sswitch_1
    .end sparse-switch
.end method
